-
Notifications
You must be signed in to change notification settings - Fork 121
Store creation M2: success screen #8141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…e creation success screen.
You can test the changes from this Pull Request by:
|
itsmeichigo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! ![]()
| @State private var isPresentingWebview: Bool = false | ||
|
|
||
| var body: some View { | ||
| VStack(alignment: .leading, spacing: 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Instead of using this extra VStack to wrap the ScrollView and the bottom view, you can also pin the bottom view to the bottom of the safe area like so:
ScrollView {
// some content here...
}
.safeAreaInset(edge: .bottom) {
// bottom view here...
}There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to try this after reviewing your PR 😄 this works like a charm, updated in a696db6
* trunk: Clear products onboarding banner and resync announcements when a product is added Trigger add product flow for products onboarding without switching tabs Remove not needed functions. Cleanup tests for removed auth tools Remove unused wp-com auth tools from WebKitVC
…view by using `safeAreaInset` from CR suggestion.
Generated by 🚫 dangerJS |
Part of #8118
Description
This PR included just a new screen,
StoreCreationSuccessViewand its hosting controller, which is shown once the site becomes Atomic after a successful purchase of an eCommerce plan. I was hoping to integrate with IAP before this PR, but there is a backend issue and I haven't been able to make a successful IAP yet. In the next PR, I'm going to make a mock IAP implementation so that we can test the whole flow more easily.The preview view is using
WebViewto show the given site URL, with interactions disabled. The preview CTA brings up a Safari sheet to see the site in fullscreen.Testing instructions
Please feel free to check the SwiftUI previews, or modify the code to see this screen in action wherever there's a
Siteavailable. For example, you can replace the code in the store picker with:Screenshots
RELEASE-NOTES.txtif necessary.